﻿<?php
    require_once('mysqli_con.php');

    $adminname = $_POST['adminname'];
    $password = $_POST['password'];

    $select = "select * from admin where adminname='$adminname' and password='$password'";
    $query = mysqli_query($con, $select);

    if(!$query){
    	echo "<script> alert('你还不是管理员，回去吧！');window.location.href='admin.php'</csript>";
    	exit();
    }else{
    	echo "<script> alert('管理员你好！');window.location.href='manager.php'</script>";
    }
?>